package com.bawei.rk_01.Room

import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query

@Dao
interface LiveDao {

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    fun insert(liveEntity: LiveEntity)

    @Delete
    fun delete(liveEntity: LiveEntity)

    @Query("select * from live where name =:name")
    fun query(name:String) : LiveEntity

}